<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>  
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>  
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html>  
<head>  
<base href="<%=basePath%>">  
  
<title>user list page</title>  
  
<meta http-equiv="pragma" content="no-cache">  
<meta http-equiv="cache-control" content="no-cache">  
<meta http-equiv="expires" content="0">  
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">  
<meta http-equiv="description" content="This is my page">  
</head>  
<body>  
    <form action="demochange.action" method="post">  
        <table width="500" align="center">  
            <caption>User Information Edit</caption>  
            <tr height="26px">  
                <td width="150px" align="right">NO.</td>  
                <td width="350px">  
                    <input type="text"  name="userid" value="${user.userid }" readonly="readonly"/>  
                    <input type="hidden" name="user.userpwd" value="${user.userpwd}"/>  
                    <input type="hidden" name="param" value="1"/>  
                </td>  
            </tr>  
                
            <tr height="26px">  
                <td width="150px" align="right">RoleID</td>  
                <td width="350px">  
               
                    <input readonly= "true " type="text"  name="user.roleid" value=""/>  
                </td>  
            </tr>  
              <tr height="26px">  
                <td width="150px" align="right">DeptID</td>  
                <td width="350px">  
                
                    <input type="text"  name="deptid"  value="${user.dept.deptid}" readonly="readonly">  
                </td>  
            </tr> 
             <tr height="26px">  
                <td width="150px" align="right">UserName</td>  
                <td width="350px">  
                  
                    <input type="text"  name="username" dataType="Require" value="${user.username}" msg="输入不能为空" />  
                </td>  
            </tr> 
             
               <tr height="26px">  
                <td width="150px" align="right">DeptName</td>  
                <td width="350px">  
                
                    <input type="text"  name="deptname" dataType="Require" value="${user.dept.deptname}" msg="输入不能为空" />  
                </td>  
            </tr> 
         
       
        
            <tr height="26px">  
                <td colspan="2" align="center">  
                    <input type="submit" value="Save"/>  
                    <input type="button" value="Back" onclick="window.history.back(-1)"/>  
                </td>  
            </tr>  
        </table>  
    </form>  
     
</body>  
</html>  